<script type="text/javascript">
$(function(){
  $("#btnGruopOrder input:radio").click(function(){
    $("#btnGruopOrder input:radio").attr("disabled","disabled");
    var valSlc = $("#btnGruopOrder input:radio:checked").index();
    if(valSlc == 0){
      $("form#frmMenu input:hidden#order").val("0");
    }else{
      $("form#frmMenu input:hidden#order").val("2");
    }
    //$(this).getAjaxDataAuto();
    $("input#btnReflash").click();
  });
 
  // 快选(号码)按钮 - 豹子 / 对对 / 一般 号码
  $("td#divBtnQuick01 span").click(function(){
    $("fieldset#fldQuickPair input:checkbox").removeAttr("checked").removeAttr("disabled");
    var addVal = $(this).index();
    var addStr = "";
    switch(addVal){
      case 0:
      addStr = "000,111,222,333,444,555,666,777,888,999";
      break;
      case 1:
      addStr = "001,002,003,004,005,006,007,008,009,011,022,033,044,055,066,077,088,099,112,113,114,115,116,117,118,119,122,133,144,155,166,177,188,199,223,224,225,226,227,228,229,233,244,255,266,277,288,299,334,335,336,337,338,339,344,355,366,377,388,399,445,446,447,448,449,455,466,477,488,499,556,557,558,559,566,577,588,599,667,668,669,677,688,699,778,779,788,799,889,899";
      break;
      case 2:
      addStr = "012,013,014,015,016,017,018,019,023,024,025,026,027,028,029,034,035,036,037,038,039,045,046,047,048,049,056,057,058,059,067,068,069,078,079,089,123,124,125,126,127,128,129,134,135,136,137,138,139,145,146,147,148,149,156,157,158,159,167,168,169,178,179,189,234,235,236,237,238,239,245,246,247,248,249,256,257,258,259,267,268,269,278,279,289,345,346,347,348,349,356,357,358,359,367,368,369,378,379,389,456,457,458,459,467,468,469,478,479,489,567,568,569,578,579,589,678,679,689,789";
      break;
    }
    $("td#divBtnQuick01 input#iptQuick01Val").val(addStr);  // 暂存点选号码
    $("td#divBtnQuick01 span").removeClass("btnchoiced").addClass("btnchoice");
    $(this).removeClass("btnchoice").addClass("btnchoiced");
  });
  
  // + - 动作按钮 (根据快选号码)
  $("td#divBtnAddVal input:button[class^=btn]").click(function(){
    var myVal = $("td#divBtnQuick01 input#iptQuick01Val").val();
    var mp = "";
    var typeVal = "";
    if(myVal != ""){
      mp = $(this).attr("class").substr(3,1);
      $("form#frmMenu input#actionNum").val(myVal);         // 资料转移
      $("form#frmMenu input#actionBettype").val("20");      // 资料设定
      $("form#frmMenu input#actionMP").val(mp);             // 资料转移
      $().setRateByXML(); // 更新赔率
    }else{
      alert('请先选择快选号码');
    }
  });
  
  // 全选
  $("fieldset#fldQuickPair input:checkbox#chkCheckAll").click(function(){
    if($(this).attr("checked")){
      $("fieldset#fldQuickPair input:checkbox[id!=chkCheckAll]").attr("checked","checked").attr("disabled","true");
    }else{
      $("fieldset#fldQuickPair input:checkbox").removeAttr("checked").removeAttr("disabled");
    }
  });
  
  // 组三 / 组六 转直
  $("fieldset#fldQuickPair input").click(function(){
    $("td#divBtnQuick01 span").removeClass("btnchoiced").addClass("btnchoice");
    var addStr = "";
    $("td#divBtnQuick01 input#iptQuick01Val").val(addStr);
    var getTypeVal = $("fieldset#fldQuickPair input:radio:checked").val();
    var addArr = new Array();
    var tempI = 0;
    var chkValArr = new Array();
    chkValArr[0] = new Array("001","002","003","004","005","006","007","008","009","011","022","033","044","055","066","077","088","099","112","113","114","115","116","117","118","119","122","133","144","155","166","177","188","199","223","224","225","226","227","228","229","233","244","255","266","277","288","299","334","335","336","337","338","339","344","355","366","377","388","399","445","446","447","448","449","455","466","477","488","499","556","557","558","559","566","577","588","599","667","668","669","677","688","699","778","779","788","799","889","899");
    chkValArr[1] = new Array("012","013","014","015","016","017","018","019","023","024","025","026","027","028","029","034","035","036","037","038","039","045","046","047","048","049","056","057","058","059","067","068","069","078","079","089","123","124","125","126","127","128","129","134","135","136","137","138","139","145","146","147","148","149","156","157","158","159","167","168","169","178","179","189","234","235","236","237","238","239","245","246","247","248","249","256","257","258","259","267","268","269","278","279","289","345","346","347","348","349","356","357","358","359","367","368","369","378","379","389","456","457","458","459","467","468","469","478","479","489","567","568","569","578","579","589","678","679","689","789");
    var chkNumArr = new Array();
    var tempI = 0;
    var chkFlag =false; var chkFlag10=false;var chkFlag11=false;var chkFlag12=false;var chkFlag13=false;
    $("fieldset#fldQuickPair input:checkbox:checked").each(function(idx){
        tempI = $(this).val();
        switch(tempI){
          case "chkAll": addArr = chkValArr[getTypeVal];return false;break;
          case "10":chkFlag10=true;break;
          case "11":chkFlag11=true;break;
          case "12":chkFlag12=true;break;
          case "13":chkFlag13=true;break;
          default:
          chkNumArr.push(tempI);
          break;
        }
    });
    if(chkNumArr.length > 0){
      chkFlag = true;
      var patt1 = new RegExp("["+chkNumArr.join(",")+"]");
    }
      
    var chkArr = new Array();
    for(idx in chkValArr[getTypeVal]){
      addThreeNum = $().addThreeNum(chkValArr[getTypeVal][idx]);
      if(chkFlag && chkValArr[getTypeVal][idx].match(patt1)){
        addArr.push(chkValArr[getTypeVal][idx]);
      }else if(chkFlag10 && (addThreeNum % 2 == 1)){
        addArr.push(chkValArr[getTypeVal][idx]);
      }else if(chkFlag11 && (addThreeNum % 2 == 0)){
        addArr.push(chkValArr[getTypeVal][idx]);
      }else if(chkFlag12 && (addThreeNum>13)){
        addArr.push(chkValArr[getTypeVal][idx]);
      }else if(chkFlag13 && (addThreeNum<14)){
        addArr.push(chkValArr[getTypeVal][idx]);
      }
    }
    addStr = addArr.join(",");
    $("td#divBtnQuick01 input#iptQuick01Val").val(addStr);  // 暂存点选号码
  });

});

$.fn.addThreeNum = function(chkStr){
  var reVal =  chkStr.substr(0,1) - 0;
  reVal += chkStr.substr(1,1) - 0;
  reVal += chkStr.substr(2,1) - 0;
  return reVal;
};

</script>
<span id="btnGruopOrder">
<input type="radio" value="0" name="showlimittype" id="showlimittype0" checked="checked" /><label for="showlimittype0">前110名(输赢排序)</label>
<input type="radio" value="0" name="showlimittype" id="showlimittype1" /><label for="showlimittype1">号码(排序)000~234</label>
<input type="radio" value="110" name="showlimittype" id="showlimittype2" /><label for="showlimittype2">号码(排序)235~999</label>
</span>
<table class="table_3d" cellpadding="0" cellspacing="1" width="100%" id="tblNowBet">
<caption class="td0">三字组合</caption>
<thead>
<tr class="td15">
<th>号码</th><th>笔数</th><th>金额</th><th>输赢</th><th>补货</th><th>赔率</th><th>操盘</th>
<th>号码</th><th>笔数</th><th>金额</th><th>输赢</th><th>补货</th><th>赔率</th><th>操盘</th>
<th>号码</th><th>笔数</th><th>金额</th><th>输赢</th><th>补货</th><th>赔率</th><th>操盘</th>
<th>号码</th><th>笔数</th><th>金额</th><th>输赢</th><th>补货</th><th>赔率</th><th>操盘</th>
<th>号码</th><th>笔数</th><th>金额</th><th>输赢</th><th>补货</th><th>赔率</th><th>操盘</th>
</tr>
</thead>
<tbody id="tbdr20">
<tr class="td2" align="right"><td colspan="35" class="row1">资料下载中...</td></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
<tr class="td2" align="right"></tr>
</tbody>
<tfoot id="tft20" align="right">
<tr class="td6" align="right"><th class="td0" colspan="29">合计</th><td>0</td><td>0</td><td>--</td><td>--</td><td>--</td><td>--</td></tr>
</tfoot>


</table>

<table width="950" border=0 cellpadding=5 cellspacing=0>
<tr valign="top">
<td>
  <div id=div0></div>
  <table width="100%" border=0 cellpadding=5 cellspacing=0>
  <tr>
  <td width="50%" id="divBtnQuick01">快选 
  <span class="btnchoice">豹子</span>
  <span class="btnchoice">对对</span>
  <span class="btnchoice">一般</span>
  <input type="text" value="" size="30" id="iptQuick01Val" />
  <input type="button" id="btnClear" value="清除" onclick="javascript:ClearQuick01Val()"/>
  </td>
  <td width="50%" id="divBtnAddVal">增量 
  <span class="btnchoice">5</span>
  <span class="btnchoice">4</span>
  <span class="btnchoice">3</span>
  <span class="btnchoice">2</span>
  <span class="btnchoice">1</span>
  <span class="btnchoiced">0.5</span>
  <span class="btnchoice">0.4</span>
  <span class="btnchoice">0.3</span>
  <span class="btnchoice">0.2</span>
  <span class="btnchoice">0.1</span>
  <span class="btnchoice">0.05</span>
  <span class="btnchoice">0.02</span>
  <span class="btnchoice">0.01</span>
  &#12288;动作 
  <input type="button" value="-" class="btnmin">
  <input type="button" value="&Phi;" class="btnplus">
  </td>
  </tr>
  <tr>
  <td colspan="3" style="font-weight:bold;">
  <fieldset id="fldQuickPair">
  <input type="radio" name="rdoQuickPair" id="rdoQuickPair01" checked="checked" value="0" /><label for="rdoQuickPair01" class="blueblod">组三转直</label>
  <input type="radio" name="rdoQuickPair" id="rdoQuickPair02" value="1" /><label for="rdoQuickPair02" class="blueblod">组六转直</label>
  [
  <input type="checkbox" id="chkCheckAll" value="chkAll" />全选&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="0" />0&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="1" />1&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="2" />2&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="3" />3&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="4" />4&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="5" />5&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="6" />6&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="7" />7&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="8" />8&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="9" />9&nbsp;
  
  <input type="checkbox" name="chkQuickPairNum[]" value="10" />合单&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="11" />合双&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="12" />合大&nbsp;
  <input type="checkbox" name="chkQuickPairNum[]" value="13" />合小&nbsp;
  ] 勾选後请手动更新赔率(↑)
  </fieldset>
  </td>
  </tr>
  <tr>
  <td>补货赔率：
  <input name="bo1" id="bo1" value="42" size=3>
  &#12288;最大输值：
  <input name="bo2" id="bo2" value="-200000" size="8">&#12288;
  <input type="button" value="补货计算" id="btnCountBo" />
  &#12288;&#12288;&#12288;&#12288;&#12288;&#12288;
  </td>
  <td>&nbsp;</td>
  </tr>
  
  </table>
</td>
</tr>
</table>   